<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
    <meta charset="UTF-8">
    <meta content="width=device-width,initial-scale=1.0,maximum-scale=1.0,user-scalable=no" name="viewport">
    <meta content="yes" name="apple-mobile-web-app-capable">
    <meta content="black" name="apple-mobile-web-app-status-bar-style">
    <meta content="telephone=no" name="format-detection">
    <meta content="email=no" name="format-detection">
    <title>下载页</title>
    <link rel="stylesheet" type="text/css" href="./style.css">
</head>

<body>
    <div class="wrapper download" onclick="downSth();">
        <label class="download-cont">
		<img id="img" src="./download1.png" style="max-width: 1071px; max-height: 231px;">
	</label>
        <div class="pop" id="popDiv">
            <img src="./pop.png">
        </div>
    </div>
    <script src="./host.js"></script>
    <script type="text/javascript">
        function resizeImg() {
            var h = document.body.clientHeight;
            var w = document.body.clientWidth;
            document.getElementById("img").style.maxWidth = w + "px";
            document.getElementById("img").style.maxHeight = h + "px";
        }
        resizeImg();

        function downSth() {
            var tua = window.navigator.userAgent.toLowerCase();
            if (tua.match(/MicroMessenger/i) == 'micromessenger') {
                document.getElementById("popDiv").style.display = "block";
            } else {
                var ua = window.navigator.userAgent;
                var isiPad = ua.match(/iPad/i) != null;
                var isiPhone = ua.match(/iPhone/i) != null;
                var isandroid = ua.match(/Android/i) != null;
                var isWin = (navigator.platform == "Win32") || (navigator.platform == "Windows");
                var isMac = (navigator.platform == "Mac68K") || (navigator.platform == "MacPPC") || (navigator.platform == "Macintosh") || (navigator.platform == "MacIntel");
                if (isiPad || isiPhone) {
                    window.location = "itms-services://?action=download-manifest&url=https://lucky_chaney.gitee.io/yhmobile/yhjj_screen/manifest.plist";
                } else if (isandroid) {
                    window.location = "http://file.yonghui.cn/apk/qyg-saler/qyg-saler_pro.apk";
                } else {
                    window.location = "http://file.yonghui.cn/apk/qyg-saler/qyg-saler_pro.apk";
                }
            }
        }
        window.onload = function() {
            downSth();
        }
    </script>

</body>

</html>